<?php
//thuc hien cac thao tac: Them, sua, xoa trong cart
$ac=     utils::getIndex("ac");
$masp =  utils::getIndex("idpro");
$quantity= utils::getIndex("quantity", 1);
//echo "qqq=".$quantity;
$objCart = new cart();
if ($ac=="add")
{
		$objCart->addItem($masp);
}

if ($ac=="del")
{
		$objCart->delItem($masp);
		echo "xóa";
}
if ($ac=="update")
{
		$objCart->updateItem($masp, $quantity);
}
$objCart->showDetail();

?>